Solve the 12-Coin Problem with 3 Weighings

  • Thread starter mdelisio
  • Start date
In summary, if the first 6 coins are good, then you can only determine which of the 6 remaining coins is the fake by using 2 measurements. If the first 6 coins are bad, you can only determine which of the 4 coins in the first group is the fake by using 1 measurement.
  • #1
mdelisio
29
0
This is a classic. Forgive me if this has been posted before.

You have 12 coins, and you know that one one of the coins may be fake. You also know that a fake coin will not have the same weight as a good coin: it will either be heavier or lighter. You have at your disposal a balance scale. This scale will only tell you if the weight of the items in the left side are heavier, lighter, or equal to the weight items in the right side.

Devise a method to determine which coin (if any) is bad and if the bad coin is heavy or light using only three scale measurements.
 
Physics news on Phys.org
  • #2
I believe this is a decimation by groups of three problem, and shooting from the hip, the first eight are tested by weighing 4 on each pan: either they balance or they dont. either way you have a reference pile, and from that can conclude which one is odd by extending the same logic in the next two weighings.

Edit, dumb mistake, that would be weigh 3 vs 3, need to divide set by 1/2. By noting the direction the balance tips, and using group of 3 known goods on one side, it is possible to determine which of the 4 sets of 3 contains the bad coin. Then 2 of the three are taken at random from the bad set. If these balance, third one is off. Otherwise the direction of the tip plus the direction of previous tips ID's the off.
 
Last edited:
  • #3
denverdoc said:
I believe this is a decimation by groups of three problem, and shooting from the hip, the first eight are tested by weighing 4 on each pan: either they balance or they dont. either way you have a reference pile, and from that can conclude which one is odd by extending the same logic in the next two weighings.

Edit, dumb mistake, that would be weigh 3 vs 3, need to divide set by 1/2. By noting the direction the balance tips, and using group of 3 known goods on one side, it is possible to determine which of the 4 sets of 3 contains the bad coin. Then 2 of the three are taken at random from the bad set. If these balance, third one is off. Otherwise the direction of the tip plus the direction of previous tips ID's the off.

I think it doesn't work. If the first 6 coins are good, you have only 2 measurements to determine which from the 6 remaining coins is the fake one.
 
  • #4
What about 4 vs 4 ?
 
  • #5
Rogerio said:
I think it doesn't work. If the first 6 coins are good, you have only 2 measurements to determine which from the 6 remaining coins is the fake one.

I thought I considered the null/null/swing sequence, but now can't recall how I differentiated the light from the heavy since you have no prior swings. Hmmm need to rethink this one.
 
  • #6
I agree that it is a groups of three problem as described by denverdoc. Extending mathmatically we can state the problem solution for any number of coins:

n= number of coins
w= number of weighings required

find minimum w such that 3 exp (w) >= n note: 3 exp(w) is 3 to the power of w.

1<= n <=3 w=1
4<= n <= 9 w=2
10<= n <= 27 w=3 This is solution for 12
28<= n <= 81 w=4
etc
 
Last edited:
  • #7
I didn't look closely at this one until a couple of hours ago. This is a good one. Anyway, I think that this is the solution.
Divide into 3 groups of 4 coins.

Weigh 1st group against 2nd group for first measurement.
If scale does not tip, then 3rd group is bad (more on that later).
If scale tips, then:
Swap 1 coin in heavy group with 1 in light group, remove 2 from heavy group and put aside and replace them with 1 good coin from third group, remove 1 from light group. There should now be 3 coins on each side of the balance.


Then take 2nd Measurement.
If scale tips the other way, then one of the swapped coins is bad. Take the heavier of the 2 coins and measure against a good coin. If it balances, then the light coin is bad. If it is heavier then it is too heavy.

If the scale stays tipped in the original direction, then either one of the 2 coins which stayed on the light side is too light, or the one which stayed on the heavy side is too heavy. Measure the 2 which stayed on the light side against each other. The lighter one is the counterfeit. If they are balanced, then the one which stayed on the heavy side is too heavy.

If the scale is balanced after the 2nd measurement, then either one of the 2 which were put aside from the original heavy side are too heavy, or the 1 put away from the light side is too light. Measure the heavy coins against each other and the heavier is the counterfeit. If balanced then the one which stayed on the light side is too light.



If the bad coin is in the third group (as mentioned above), then do the following:
Split the last 4 into 2 groups, and the replace one of the coins in one of these groups with a good coin. There should be 2 coins on each side.


Take the 2nd measurement.
If the scale balances then the coin that was replaced was the bad coin. Measure (3rd measurement) this against a good coin to see if it is too heavy or light.

If the scale tips then measure the 2 suspected coins that were on the same side against each other. If they were on the heavy side, then the heavier one is bad, if they were on the lighter side then the lighter one is bad.
If they balance but were on the heavier side, then the suspect coin that was with the good coin is too light. If they balance but were on the light side then the suspect coin that was with the good coin is too heavy.
 
  • #8
vamfun said:
.
.
.
Extending mathmatically we can state the problem solution for any number of coins:
n= number of coins
w= number of weighings required

find minimum w such that 3 exp (w) >= n note: 3 exp(w) is 3 to the power of w.
.
.
.
10<= n <= 27 w=3 This is solution for 12.
.

If this was right, then w=3 would be solution for n=13 too.
But it is not...:-(
 
  • #9
You're right!
Correction: The above assumed that one coin was heavy. This is acutally unknown , so an additional weighing is necessary against known good coins for many of the cases (excluding n=10,11 and 12 at least) Sorry
 
Last edited:
  • #10
vamfun said:
I agree that it is a groups of three problem as described by denverdoc. Extending mathmatically we can state the problem solution for any number of coins:

n= number of coins
w= number of weighings required

find minimum w such that 3 exp (w) >= n note: 3 exp(w) is 3 to the power of w.

1<= n <=3 w=1
4<= n <= 9 w=2
10<= n <= 27 w=3 This is solution for 12
28<= n <= 81 w=4
etc

It does not work for n = 2 or n = 3.
If the balance tips, you don´t know if the fake is lighter or heavier than the true.
 
  • #11
vamfun said:
Ahh...but it is. Try dividing into piles of 3 3 and 4. First, weigh the 3 and 3 piles. If one is heavier then it only takes 1 more weighing.
.
.
.

Then tell me how!
Remeber "the fake coin will either be heavier or lighter"...:-)

As I told you before, if there are 13 coins you will need (sometimes) more than 3 weighings to determine the fake one.
 
  • #12
Sorry for the intrusion, but...

Holy cow, Rogerio! Looong time, no see.
 
  • #13
Gokul43201 said:
Holy cow, Rogerio! Looong time, no see.

Hi Gokul! Nice to see you!

Well...I'm back!
:-)
 
  • #14
Ok, I am with you now. If a coin is either light or heavy then an additional weighing is needed against the reference coins for most of the cases (excluding n=10,11 and 12) I will update the table when I get a chance.
Sorry for the confusion.

PS I had worked this problem before when the coin given as heavier...and read this into the problem rather than answering the right question... seems to be a bad habit of mine:)
update:
The new table would look like this:
n= number of coins
w= number of weighings required


n=1,2 no solution
n=3 w=2
4<= n <= 12 w=3

for n> 12 find minimum w such that 3 exp (w-1) >= n
note: 3 exp(w-1) is 3 to the power of (w-1).

this gives
13<=n<=27 w=4
28<=n<=81 w=5 etc

can anyone find some holes in this one?
 
Last edited:
  • #15
Ok, this one is easy. Take the scale to the local scientist. Tell him you will give him the scale if he will tell which coin is fake. Let him do the math while you have a drink with the local lady of the evening:biggrin: biggrin:
 
Last edited:

Related to Solve the 12-Coin Problem with 3 Weighings

1. How does the 12-coin problem with 3 weighings work?

The 12-coin problem with 3 weighings is a mathematical puzzle that challenges participants to find the counterfeit coin among a group of 12 coins using only a balance scale and 3 weighings.

2. What is the objective of the 12-coin problem?

The objective of the 12-coin problem is to determine which of the 12 coins is fake and whether it is lighter or heavier than the genuine coins, using only 3 weighings on the balance scale.

3. How many possible outcomes are there for each weighing?

For each weighing, there are 3 possible outcomes: the left side is heavier, the right side is heavier, or both sides are equal in weight.

4. What is the minimum number of weighings needed to solve the 12-coin problem?

The minimum number of weighings needed to solve the 12-coin problem is 3. This is because there are 12 coins and each weighing can provide information about 3 coins at a time, allowing for all 12 coins to be evaluated in 3 weighings.

5. Are there any strategies or techniques for solving the 12-coin problem?

Yes, there are several strategies and techniques that can be used to solve the 12-coin problem. Some common approaches include dividing the coins into smaller groups, using a process of elimination, and keeping track of previous weighings to narrow down the possibilities.

Similar threads

  • General Discussion
Replies
10
Views
1K
  • General Discussion
Replies
11
Views
941
  • General Discussion
Replies
1
Views
3K
  • General Discussion
Replies
4
Views
2K
Replies
8
Views
3K
  • General Discussion
Replies
7
Views
3K
  • General Discussion
Replies
28
Views
20K
Replies
2
Views
2K
Replies
9
Views
5K
  • General Discussion
Replies
2
Views
3K
Back
Top